package com.base.commonlib.utils;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AlertDialog;
import android.widget.TextView;

import com.base.commonlib.R;


/**
 * Created by jp on 2018/8/5.
 */

public class PbDialog_mes extends AlertDialog {
    private String mMes;
    private TextView mTv;

    public PbDialog_mes(@NonNull Context context) {
        super(context, R.style.dialog);

    }

    public void setMes(String mes) {
        mMes = mes;
        if (mTv != null) {
            mTv.setText(mMes);
        }
    }


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_pb);
        mTv = findViewById(R.id.tv);
        mTv.setText(mMes);
    }
}
